package com.tester.zc.test002.runnable;

/**
 * 题目2 ：多线程ThreadLocal
 * 生产者和消费者关系，生产者生产一个包子,消费者就去吃一个包子
 *
 * @Author zhoucan
 * @Date 2022/12/11
 */
public class RunnableTest {

    public static void main(String[] args) {
        Producer producer = new Producer();
        Thread proThread = new Thread(producer, "生产者");
        proThread.start();

        Consumer consumer = new Consumer();
        Thread conThread = new Thread(consumer, "消费者");
        conThread.start();
    }
}
